package com.xhwl.logistics.service;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xhwl.common.pojo.ResultJson;
import com.xhwl.common.pojo.cent.vehicle.VehcCarSpot;
import com.xhwl.common.query.cent.vehicle.CarSpotQuery;
import com.xhwl.common.vo.cent.vehicle.CarSpotVO;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Lu.Aaron
 * @since 2021-02-08
 */
//@RestController
public interface IVehcCarSpotService extends IService<VehcCarSpot> {
    @RequestMapping(value = "/carSpot-service/add", method = RequestMethod.POST)
    void add(@RequestPart("carSpotVO") CarSpotVO carSpotVO, Short industryId);

    @RequestMapping(value = "/carSpot-service/update", method = RequestMethod.POST)
    void edit(@RequestPart("carSpotVO") CarSpotVO carSpotVO, Short industryId);

    @RequestMapping(value = "/carSpot-service/delete", method = RequestMethod.POST)
    void delete(@RequestParam("id") Integer id, Short industryId);

    @RequestMapping(value = "/carSpot-service/page", method = RequestMethod.POST)
    Page<VehcCarSpot> carSpotPage(@RequestPart("carSpotQuery") CarSpotQuery carSpotQuery);

    @RequestMapping(value = "/carSpot-service/number-check", method = RequestMethod.GET)
    ResultJson numberCheck(@RequestParam("number") String number, Integer parkingLotId);

    @PostMapping("/carSpot-Service/statistic")
    void statisticCarSpot();

}
